<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:iterator value="pageHtml" var="link">
	<s:if test="%{#link == 'Next'}">
		<s:set name="n" value="%{p + 1}"/> 
			>>
		<a href="users?p=${n}">Next</a>
	</s:if>
	<s:elseif test="%{#link == 'Previous'}">
		<s:set name="n" value="%{p - 1}"/> 
		<a href="users?p=${n}">Previous</a>
			<<
	</s:elseif>
	<s:else>
			<a href="users?p=${link}">${link}</a>
	</s:else>
</s:iterator>